package com.prizedraw.prize_draw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.prizedraw.prize_draw.entity.DepartmentRole;
import com.prizedraw.prize_draw.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author czj666
 * @since 2021-09-07
 */
@Repository
public interface DepartmentRoleMapper extends BaseMapper<DepartmentRole> {

    List<Integer> getCountRoleIdEqByIds(Integer[] ids);

    void saveAndIgnoreRepeat(@Param("department_id") Integer department_id, @Param("role_id")Integer role_id);
}
